package su.test.OneWayEncryption;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

/**
 * @author SuZuQi
 * @title: EncrySHA
 * @projectName myEncry
 * @description: SHA加密
 * @date 2019/12/17
 */
public class EncrySHA {
    public static void main (String[] args ) throws NoSuchAlgorithmException {
        MessageDigest sha = MessageDigest.getInstance("SHA");
        String info = "Will Miss Huang come to WuHan next year " ;
        sha.update(info.getBytes());
        sha.digest();
    }
}
